home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIJRILiveConnectPlugin.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  113 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJRILiveConnectPlugin.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJRILiveConnectPlugin_h__
  6. #define __gen_nsIJRILiveConnectPlugin_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "jri.h"
  22.  
  23. /* starting interface:    nsIJRILiveConnectPlugin */
  24. #define NS_IJRILIVECONNECTPLUGIN_IID_STR "c94058e0-f772-11d1-815b-006008119d7a"
  25.  
  26. #define NS_IJRILIVECONNECTPLUGIN_IID \
  27.   {0xc94058e0, 0xf772, 0x11d1, \
  28.     { 0x81, 0x5b, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a }}
  29.  
  30. /** 
  31.  * The nsIJRILiveConnectPlugin interface defines additional entry points that a
  32.  * plugin developer needs to implement in order for the plugin to support 
  33.  * JRI-based LiveConnect, as opposed to the standard JNI-based LiveConnect
  34.  * (which new in 5.0).
  35.  *
  36.  * Plugin developers requiring this capability should implement this interface
  37.  * in addition to the basic nsIPlugin interface.
  38.  */
  39. class NS_NO_VTABLE nsIJRILiveConnectPlugin : public nsISupports {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJRILIVECONNECTPLUGIN_IID)
  43.  
  44.   /**
  45.      * Returns the class of the Java instance to be associated with the
  46.      * plugin.
  47.      *
  48.    * (New JNI-based entry point, roughly corresponds to NPP_GetJavaClass.)
  49.      *
  50.    * @param aJavaClass - a resulting reference to the Java class
  51.    * @result           - NS_OK if this operation was successful
  52.      */
  53.   /* void getJavaClass (in JRIEnvPtr aEnv, out jref aJavaClass); */
  54.   NS_IMETHOD GetJavaClass(JRIEnv * aEnv, jref *aJavaClass) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIJRILIVECONNECTPLUGIN \
  60.   NS_IMETHOD GetJavaClass(JRIEnv * aEnv, jref *aJavaClass); 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  63. #define NS_FORWARD_NSIJRILIVECONNECTPLUGIN(_to) \
  64.   NS_IMETHOD GetJavaClass(JRIEnv * aEnv, jref *aJavaClass) { return _to GetJavaClass(aEnv, aJavaClass); } 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSIJRILIVECONNECTPLUGIN(_to) \
  68.   NS_IMETHOD GetJavaClass(JRIEnv * aEnv, jref *aJavaClass) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJavaClass(aEnv, aJavaClass); } 
  69.  
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72.  
  73. /* Header file */
  74. class nsJRILiveConnectPlugin : public nsIJRILiveConnectPlugin
  75. {
  76. public:
  77.   NS_DECL_ISUPPORTS
  78.   NS_DECL_NSIJRILIVECONNECTPLUGIN
  79.  
  80.   nsJRILiveConnectPlugin();
  81.  
  82. private:
  83.   ~nsJRILiveConnectPlugin();
  84.  
  85. protected:
  86.   /* additional members */
  87. };
  88.  
  89. /* Implementation file */
  90. NS_IMPL_ISUPPORTS1(nsJRILiveConnectPlugin, nsIJRILiveConnectPlugin)
  91.  
  92. nsJRILiveConnectPlugin::nsJRILiveConnectPlugin()
  93. {
  94.   /* member initializers and constructor code */
  95. }
  96.  
  97. nsJRILiveConnectPlugin::~nsJRILiveConnectPlugin()
  98. {
  99.   /* destructor code */
  100. }
  101.  
  102. /* void getJavaClass (in JRIEnvPtr aEnv, out jref aJavaClass); */
  103. NS_IMETHODIMP nsJRILiveConnectPlugin::GetJavaClass(JRIEnv * aEnv, jref *aJavaClass)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* End of implementation class template. */
  109. #endif
  110.  
  111.  
  112. #endif /* __gen_nsIJRILiveConnectPlugin_h__ */
  113.